yarn add terser-webpack-plugin --dev
const TerserWebpackPlugin = require("terser-webpack-plugin");
optimization: {
  minimizer: [
    new TerserWebpackPlugin(),
    new OptimizeCssAssetsWebpackPlugin(),
  ],
},